#include "pch.hpp"
#include "PreviewWidget.hpp"




PreviewWidget::PreviewWidget(QWidget* parent)
	: QtUi::GraphicsWidget(parent)
{
	auto uiSystem = engine()->uiSystem();
	m_desktop = uiSystem->desktop();

	// The console should not be present in this application
	//m_desktop->console()->setEnabled(false);

	auto layout = m_desktop->setLayout(Engine::Ui::VerticalLayout::create(m_desktop));
	layout->add(Engine::Ui::Text::create("Hello World!", m_desktop));
	/*layout->add(Engine::Ui::PushButton("Hello World!", m_desktop)));
	DialogPtr dialog(layout->add(Dialog::create("What do you want to do?", "I'm a dialog", m_desktop)));
	dialog->addButton(StandardButton::Ok);
	dialog->addButton(StandardButton::Yes);
	dialog->addButton(StandardButton::No);*/
}
///////////////////////////////////////////////////////////////////////////////////////////////////

PreviewWidget::~PreviewWidget()
{}
///////////////////////////////////////////////////////////////////////////////////////////////////
